package com.jia.interviewPro;

public class Pro1607 {
    public int maximum2(int a, int b) {
        return Math.max(a,b);
    }

    //max(a,b) = (|a-b| + a + b) / 2
    public int maximum(int a, int b) {
        long c = a;
        long d = b;
        return (int)((Math.abs(c - d)+a +b)/2);
    }
}
